import ApiBase from './ApiBase'

export default class Words extends ApiBase {
    
    /*
    字典数据
    @params 序号
    */
    async Words(params){
    let url='/words';
    let result = await super.request(url);
    var jsonObj = result.data.words;
        for(let i in jsonObj){
            if(params!=undefined){
                if(i==params){
                    return jsonObj[i].items
                }
            }else{
                return []
            }
        }
    }
}
